package com.example.demo.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.example.demo.entify.Menu;
import com.example.demo.entify.RoleMenu;

@Repository
public interface menuDao {

	List<Menu> findMenu(Menu menu);
	List<Menu> findAllmenus( @Param("params") Map<String,Object> params);
	//分配权限
	int addroleMenu(RoleMenu RoleMenu);
	
	int deleteRoleMenu(RoleMenu RoleMenu);
	//判断该角色是否已有该菜单
	RoleMenu isExistence(RoleMenu RoleMenu);
	//添加菜单
	int addMenu(Menu menu);
	
	
	
	
}
